package cn.kgc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "air_quality_index")
public class AirQualityIndex implements Serializable {
    @Id
    private Long id;
    private Integer districtId;
    @JsonFormat(pattern = "yyyy-MM-dd" )
    private Date monitorTime;
    private Integer pm10;
    private Integer pm25;
    private String monitoringStation;
    @JsonFormat(pattern = "yyyy-MM-dd" )
    private Date lastModifyTime;
    @Transient
    private String districtName;

}
